<?php if ($actions = $this->configuration->getValue('list.actions')): ?>
<?php foreach ($actions as $name => $params): ?>
<?php if ('_new' == $name): ?>
<?php echo $this->addCredentialCondition('[?php echo $helper->linkToNew('.$this->asPhp($params).') ?]', $params)."\n" ?>
<?php else: ?>
<?php if(isset($params['no_data']) && true === $params['no_data']): ?>
<?php echo $this->addCredentialCondition('[?php echo $helper->linkToAction('.$this->asPhp($params).') ?]', $params)."\n" ?>
<?php else: ?>
[?php if ($pager->getNbResults() !== 0): ?]
<?php echo $this->addCredentialCondition('[?php echo $helper->linkToAction('.$this->asPhp($params).') ?]', $params)."\n" ?>
[?php endif ?]
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($this->configuration->hasFilterForm()): ?>
<li class="admin_action_filter"><a id="admin_filter_open" href="">Buscar</a></li>
[?php if (count($sf_user->getAttribute('<?php echo $this->getModuleName() ?>.filters', null, 'admin_module')) > 0): ?]
<li class="admin_action_reset">
[?php echo link_to('Ver todos', '<?php echo $this->getUrlForAction('collection') ?>', array('action' => 'filter'), array('query_string' => '_reset', 'method' => 'post')) ?]
</li>
[?php endif ?]
<?php endif; ?>
<?php endif; ?>
